<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>雪碧图实现原理</title>
    <style type="text/css">
        div{
            width: 48px;
            height: 88px;
            display: inline-block;
            background: url(../images/taobao_list.png) no-repeat 0 0;
        }
        div.sprite1{
            background-position: 0 0;
        }
        div.sprite2{
            background-position: 0px -88px;
        }
        div.sprite3{
            background-position: 0px -176px;
        }
        div.sprite4{
            background-position: 0px -260px;
        }
    </style>
</head>
<body>
    <div class="sprite1"></div>
    <div class="sprite2"></div>
    <div class="sprite3"></div>
    <div class="sprite4"></div>
</body>
</html>